#include "stdafx.h"
#include "NtTP_Teapot.h"
#include "NtApplication.h"
#include "NtScene.h"
#include "NtVO_Teapot.h"
#include "NtVO_Mesh.h"

NtTP_Teapot::NtTP_Teapot(void)
: m_Teapot(0)
{
}

NtTP_Teapot::~NtTP_Teapot(void)
{
	if ( m_Teapot)
	{
//		NtApplication::GetInstance()->GetScene()->RemoveVisibleObject( m_Teapot );
		m_Teapot = 0;
	}
}

void NtTP_Teapot::Init()
{
//	m_Teapot = new NtVO_Teapot;

//	NtApplication::GetInstance()->GetScene()->AddVisibleObject( m_Teapot );

	NtVO_MeshPtr Teapot = new NtVO_Mesh();
	Teapot->LoadX("123.X");
	NtApplication::GetInstance()->GetScene()->AddVisibleObject( Teapot );
}

LRESULT NtTP_Teapot::OnMessage( HWND hWnd, UINT Id, WPARAM wParam, LPARAM lParam )
{
	return 0;
}
